package academico.persistence;

/**
 *
 * @author 9100302
 */
public abstract class DAOFactory {

    public enum Factory{
        DataBase,
        File
    }

    public abstract AlunoDAO getAluno();

    public static DAOFactory getDAOFactory(Factory factory) {
        switch (factory) {
            case DataBase:
                return new AlunoPsqlDAOFactory();
            case File:
                return new AlunoArquivoDAOFactory();
            default:
                return null;
        }
    }
    
}
